package com.atguigu.gulimall.order.domain.to;

import com.atguigu.gulimall.order.entity.OrderEntity;
import com.atguigu.gulimall.order.entity.OrderItemEntity;
import lombok.*;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * @Description
 * @Author lhj
 * @Date 2024/5/4 16:34
 */
@Data
@Builder
@EqualsAndHashCode
@NoArgsConstructor
@AllArgsConstructor
public class CreateOrderTo implements Serializable {

    private static final long serialVersionUID = 5399533819031085651L;

    /**
     * 订单
     */
    private OrderEntity order;
    /**
     * 订单项
     */
    private List<OrderItemEntity> orderItems;
    /**
     * 总价格
     */
    private BigDecimal payPrice;
    /**
     * 运费
     */
    private BigDecimal freightPrice;
    
}
